<template>
  <div id="app">
    <router-view v-if="noHeaders.includes($route.name)"></router-view>
    <el-container v-else class="layout" direction="vertical">
      <Header/>
      <router-view></router-view>
    </el-container>
  </div>
</template>

<script>
import Header from './components/header/index.vue'
export default {
  components: {
    Header
  },
  name: 'App',
  data: function() {
    return {
      noHeaders: ['login']
    }
  }
}
</script>
<style lang="less" scoped>
@import url("./assets/css/index.less");
.layout {
  width: 100%;
  min-height: 100vh;
}
</style>
